package com.example.user.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.commons.core.entity.Role;
import com.example.commons.core.vo.receive.RoleReceiveVo;
import com.example.commons.core.vo.result.RoleMenuResultVo;
import com.example.user.mapper.RoleMapper;
import com.example.user.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public List<Role> roleFindByUserId(Long userId) {
        return baseMapper.roleFindByUserId(userId);
    }

    @Override
    public IPage<RoleMenuResultVo> getRoleMenuPage(IPage<RoleMenuResultVo> iPage, RoleReceiveVo roleReceiveVo) {
        return baseMapper.getRoleMenuPage(iPage, roleReceiveVo);
    }
}
